/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

body {
  background: linear-gradient(to br, #f8fafc, #e2e8f0);
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Header Styles */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 0 0.1rem 0;
  position: relative;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  margin-bottom: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.918);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.019em;
  margin-bottom: 0.25rem;
}

.header-text p {
  color: #dbeafe;
  font-size: 10px;
}
.typewriter {
  overflow:hidden;              /* Hide the overflow text */
  white-space: nowrap;           /* Prevent text from wrapping */
  border-right: 3px solid black; /* Simulate cursor */
  width: 0;                      /* Start with no visible text */
  font-family: monospace;
  animation: typing 8s steps(60, end) infinite, blink 0.7s step-end infinite alternate-reverse;
  
}


/*filter for quick access*/




/* ===== SEARCH BAR STYLES ===== */
/* Styles for the search bar */

/* Search Bar Styles */
.search-section {
  padding: 0;
  margin: 10px 0;
  position: relative;
  overflow: visible;
  height: auto;
  display: flex;
  justify-content: flex-end;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.search-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 10px;
  height: auto;
  width: auto;
}

.search-input-wrapper {
  position: relative;
  width: 220px;
  max-width: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 46px 10px 14px;
  font-size: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  color: #333;
}

.search-input:focus {
  border-color: #4462f3;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #888;
  font-weight: 400;
}

.search-btn {
  position: absolute;
  right: 6px;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  border: none;
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.search-btn:active {
  transform: scale(0.95);
}

.clear-btn {
  position: absolute;
  right: 40px;
  color: #555;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.clear-btn:hover {
  transform: scale(1.1);
}

.search-results-info {
  position:initial;
  top: 120%;
  right: 0;
  z-index: 2;
  text-align: center;
  color: #3b3b3b;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  max-width: 240px;
}

#resultsCount {
  font-weight: 700;
  color: #1d4ed8;
}

.highlight {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #92400e;
  box-shadow: 0 1px 3px rgba(146, 64, 14, 0.2);
}

.card.hidden {
  display: none;
}

.card.show {
  animation: slideInUp 0.4s ease-out;
}
.card-description{
  text-align: justify;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-results {
  text-align: center;
  padding: 60px 16px;
  color: #64748b;
  border-radius: 16px;
  margin: 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.no-results svg {
  margin-bottom: 20px;
  opacity: 0.6;
  color: #94a3b8;
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
}

.no-results p {
  font-size: 0.95rem;
  opacity: 0.8;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .search-input-wrapper {
    width: 180px;
  }

  .search-input {
    padding: 10px 40px 10px 12px;
    font-size: 13px;
  }

  .search-btn {
    width: 26px;
    height: 26px;
  }

  .clear-btn {
    right: 38px;
    width: 18px;
    height: 18px;
  }

  .search-results-info {
    font-size: 12px;
    padding: 5px 10px;
    top: 105%;
  }
}

@media (max-width: 480px) {
  .search-input-wrapper {
    width: 160px;
  }

  .search-input {
    padding: 8px 38px 8px 10px;
    font-size: 12px;
  }

  .search-btn {
    width: 24px;
    height: 24px;
  }

  .clear-btn {
    right: 34px;
    width: 16px;
    height: 16px;
  }
}

/* Searching Animation */
.search-input.searching {
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .search-input {
    border: 2px solid #000;
  }

  .search-btn {
    border: 2px solid #fff;
  }
}

/* Support backdrop blur */
@supports (backdrop-filter: blur(10px)) {
  .search-section::before,
  .search-results-info {
    backdrop-filter: blur(0px);
  }
}

.search-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.search-input-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 52px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-input-wrapper:hover::before {
  opacity: 1;
}



/* Typing Effect */
@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 55ch;  /* Adjust based on your text length */
  }
  100% {
    width: 0;
  }
}

/* Cursor Blink Effect */
@keyframes blink {
  from {
    border-color: transparent;
  }
  to {
    border-color: black;
  }
}

/* Header Text with Icon */


/* Navigation Styles */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #dbeafe;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 20rem;
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-menu-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
  background: #f1f5f9;
}

.mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background: #f1f5f9;
}

/* Quick Access Navigation */
.quick-access-nav {
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e2e8f0;
}

.quick-access-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.quick-access-label {
  color: #475569;
  font-weight: 500;
}

.quick-access-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}


.quick-access-Games {
  background: #f0bef5;
  color: hsl(294, 92%, 14%);
}

.quick-access-Games:hover {
  background: #e38fd2;
}

.quick-access-converter {
  background: #bec5f5;
  color: hsl(235, 92%, 14%);
}

.quick-access-converter:hover {
  background: #8faae3;
}

.quick-access-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}


.quick-access-calculator {
  background: #dcfcfa;
  color: #165c65;
}

.quick-access-calculator:hover {
  background: #bbf3f7;
}

.quick-access-documet-converter {
  background: #fef3c7;
  color: #a16207;
}

.quick-access-documet-converter:hover {
  background: #fde68a;
}


.quick-access-Health {
  background: #d3fec7;
  color: #47a107;
}

.quick-access-Health:hover {
  background: #97fd8a;
}

/* Intro Section */
.intro {
  padding: 2rem 0;
  text-align: center;
}

.intro h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.125rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Section */
.cards {
  padding: 2rem 0 4rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Card Icon Colors */

.card-icon-blue { background: #dbeafe; color: #1d4ed8; }
.card-icon-green { background: #dcfce7; color: #166534; }
.card-icon-yellow { background: #fef3c7; color: #a16207; }
.card-icon-red { background: #fee2e2; color: #dc2626; }
.card-icon-emerald { background: #d1fae5; color: #059669; }
.card-icon-purple { background: #e9d5ff; color: #7c3aed; }
.card-icon-indigo { background: #e0e7ff; color: #4338ca; }
.card-icon-pink { background: #fce7f3; color: #db2777; }
.card-icon-teal { background: #ccfbf1; color: #0f766e; }
.card-icon-cyan { background: #cffafe; color: #0891b2; }
.card-icon-orange { background: #fed7aa; color: #ea580c; }
.card-icon-lime { background: #ecfccb; color: #65a30d; }
.card-icon-rose { background: #ffe4e6; color: #e11d48; }
.card-icon-amber { background: #fef3c7; color: #d97706; }
.card-icon-violet { background: #ede9fe; color: #8b5cf6; }
.card-icon-slate { background: #f1f5f9; color: #475569; }
.card-icon-gray { background: #f3f4f6; color: #6b7280; }

.card-info {
  min-width: 0;
  flex: 1;
}

.card-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.card-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-info h3 a:hover {
  color: #2563eb;
}

.card-category {
  font-size: 0.875rem;
  color: #64748b;
  text-transform: capitalize;
  margin-bottom:5rem;
}

.card-description {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}

.a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.a:hover {
  text-decoration: underline;
  color: #e6b952;
}




/* Footer Styles */
footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #fefeff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.footer-logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.footer-logo h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
}



/* Responsive Design */
@media (min-width: 768px) {
  .header-text h1 {
    font-size: 2.5rem;
  }

  .intro h2 {
    font-size: 2.25rem;
  }

  .quick-access-content {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .header-text h1 {
    font-size: 3rem;
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
.icon-small {
  width: 40px;         /* Adjust size as needed */
  height: 40px;
  vertical-align: middle;  /* Aligns with text */
  margin-right: 16px;
  margin-left: 16px;       /* Space between icon and text */
}
.header-logo{
  width: 100%;         /* Adjust size as needed */
  height: 100%;
  vertical-align: middle;  /* Aligns with text */
  margin-right: 9px;
  margin-left: 9px;       /* Space between icon and text */

}

.marquee {
  color: red;
  margin-top: 3px;
}
.marquee{
 background: linear-gradient(135deg, #a5b3f4 0%, #c2a6de 100%);

}

.blinking-stars {
  animation: blinkGlow 1s infinite;
  color: gold;
  font-size: 14px;
  text-shadow: 0 0 0px #ffc107, 0 0 5px #ffeb3b;
}

@keyframes blinkGlow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0px #ffc107, 0 0 5px #ffeb3b;
  }
  50% {
    opacity: 0.2;
    text-shadow: none;
  }
}

